package com.wdl.modules.myhouse.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 昏昏的君
 */
@Data
@ToString
public class CommentsVo {

   private Long commentId;
   private String content;
   private Long commentParentId;
   @JsonFormat(pattern = "yyyy年MM月dd日",timezone="Asia/Shanghai")
   private Date commentTime;
   private String username;
   private String avatarUrl;

   private List<CommentsVo> childComments=new ArrayList<>();
}
